//
//  DrawView.h
//  CAShapeLayerDemo
//
//  Created by XFB on 2017/11/28.
//  Copyright © 2017年 ZhouCheng. All rights reserved.
//

#import <UIKit/UIKit.h>

#define RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
#define RGB(r,g,b) RGBA(r,g,b,1.0f)
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#define SCREEN_WIDTH       self.frame.size.width
#define SCREEN_HEIGHT     self.frame.size.height
#define  CENTER   CGPointMake(SCREEN_WIDTH *.5, SCREEN_HEIGHT *.4)

@interface DrawView : UIView

- (void)setPercent:(NSInteger)percent animated:(BOOL)animated;

@end
